package com.ktjy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ktjy.pojo.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 查询总记录数
     * @param condition
     * @return
     */
    Integer count(@Param("condition") SysUser condition);

    /**
     * 查询每页显示的条数
     * @param condition
     * @param pageIndex
     * @param pageSize
     * @return
     */
    List<SysUser> getPage(@Param("condition") SysUser condition,
                          @Param("pageIndex") Integer pageIndex,
                          @Param("pageSize") Integer pageSize);
}
